/**
 * 回评内容
 */

import request from "@/request";

/**
 * 获取商家对用户的购买行为和退货行为的回评
 * @param formData 以table形式传输至后端的数据
 * @returns {*}
 */
export function selectMerchantReviewByUserId(formData) {
    return request({
        url: '/user/information/merchant/review',
        method: 'post',
        headers: {"Content-Type": "multipart/form-data"},
        data: formData
    })
}

/**
 * 根据用户输入的查询内容获取商家对用户的购买行为和退货行为的回评
 * @param formData 以table形式传输至后端的数据
 * @returns {*}
 */
export function selectMerchantReviewByUserIdAndText(formData) {
    return request({
        url: '/user/information/merchant/review/select',
        method: 'post',
        headers: {"Content-Type": "multipart/form-data"},
        data: formData
    })
}